package com.lanou.service.impl;

import com.lanou.bean.Province;
import com.lanou.mapper.ProvinceMapper;
import com.lanou.service.ProvinceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ProvinceServiceImpl implements ProvinceService{

    @Autowired
    private ProvinceMapper provinceMapper;
    @Override
    public List<Province> getAllProvince() {
        return provinceMapper.getAllProvince();
    }

    @Override
    public String selectProvinceByP(Integer provinceId) {
        return provinceMapper.selectProvinceByP(provinceId);
    }
}
